package com.joysuch.wwyt.core.enums;

/**
 * 证件类型
 *
 * @Author ZhangDong
 * @Date 2020/12/22 13:22
 */
public enum CardTypes {

    SFZJLX_TZZYCZZ(1419, "特种作业操作证"),
    SFZJLX_ZCAQGCSZYZGZ(1420, "注册安全工程师执业资格证"),
    SFZJLX_AQPJSZ(1421, "安全评价师证"),
    SFZJLX_SFZ(1422, "身份证"),
    SFZJLX_XLZM(1423, "学历证明"),
    SFZJLX_JKZM(1424, "健康证明");

    private Integer id;
    private String cardName;

    CardTypes(Integer id, String cardName) {
        this.id = id;
        this.cardName = cardName;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCardName() {
        return cardName;
    }

    public void setCardName(String cardName) {
        this.cardName = cardName;
    }

    public static Integer getId(String cardName){
        CardTypes[] values = CardTypes.values();
        for (CardTypes value : values) {
            if (value.cardName.equals(cardName)){
                return value.id;
            }
        }
        return null;
    }

}



